package com.ytc.order.service;

import com.ytc.commons.model.dto.CourseOrderDto;
import com.ytc.commons.model.dto.PageRequest;
import com.ytc.commons.model.vo.CourseOrderVo;
import com.ytc.commons.model.vo.OrdersVo;
import com.ytc.commons.model.vo.ResponseResult;
import com.ytc.order.domain.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author jiuye145
 * @since 2023-04-09
 */
public interface OrdersService extends IService<Orders> {

    //创建订单
    ResponseResult<String> create(Long coursePubId);

    //根据orderNO查询 ，订单支付状态
    ResponseResult<OrdersVo> queryOrders(String orderNo);
   //
    ResponseResult<CourseOrderVo> ordersList (PageRequest request,CourseOrderDto dto);
}
